package com.jingzhi.huimiao.bean;

import java.util.Arrays;

/**
 * 用户信息的解析类
 * 
 * @author cxk
 * 
 * 
 */
public class User {

	private String fan;
	private UserInfo user;
	private WrongWord[] wrongWord;

	public String getFan() {
		return fan;
	}

	public void setFan(String fan) {
		this.fan = fan;
	}

	public UserInfo getUser() {
		return user;
	}

	public void setUser(UserInfo user) {
		this.user = user;
	}

	
	public WrongWord[] getWrongWord() {
		return wrongWord;
	}

	public void setWrongWord(WrongWord[] wrongWord) {
		this.wrongWord = wrongWord;
	}


	@Override
	public String toString() {
		return "User [fan=" + fan + ", user=" + user + ", wrongWord="
				+ Arrays.toString(wrongWord) + "]";
	}


	public class UserInfo {
		private int continueDay;// 学习持续天数
		private String createTime;
		private long id;
		private String password;
		private String username;
		private long totalDay;// 学习总天数
		private String updateTime;
		private int experience;

		
		public int getExperience() {
			return experience;
		}

		public void setExperience(int experience) {
			this.experience = experience;
		}

		public int getContinueDay() {
			return continueDay;
		}

		public void setContinueDay(int continueDay) {
			this.continueDay = continueDay;
		}

		public String getCreateTime() {
			return createTime;
		}

		public void setCreateTime(String createTime) {
			this.createTime = createTime;
		}

		public long getId() {
			return id;
		}

		public void setId(long id) {
			this.id = id;
		}

		public String getPassword() {
			return password;
		}

		public void setPassword(String password) {
			this.password = password;
		}

		public String getUsername() {
			return username;
		}

		public void setUsername(String username) {
			this.username = username;
		}

		

		public long getTotalDay() {
			return totalDay;
		}

		public void setTotalDay(long totalDay) {
			this.totalDay = totalDay;
		}

		public String getUpdateTime() {
			return updateTime;
		}

		public void setUpdateTime(String updateTime) {
			this.updateTime = updateTime;
		}

		@Override
		public String toString() {
			return "UserInfo [continueDay=" + continueDay + ", createTime="
					+ createTime + ", id=" + id + ", password=" + password
					+ ", username=" + username + ", totalDay=" + totalDay
					+ ", updateTime=" + updateTime + "]";
		}

	}
	
	public class WrongWord{
		private String insertTime;
		private long userId;
		private long wordId;
		public String getInsertTime() {
			return insertTime;
		}
		public void setInsertTime(String insertTime) {
			this.insertTime = insertTime;
		}
		public long getUserId() {
			return userId;
		}
		public void setUserId(long userId) {
			this.userId = userId;
		}
		public long getWordId() {
			return wordId;
		}
		public void setWordId(long wordId) {
			this.wordId = wordId;
		}
		@Override
		public String toString() {
			return "WrongWord [insertTime=" + insertTime + ", userId=" + userId
					+ ", wordId=" + wordId + "]";
		}
		
		
	}

}
